package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffPullNPeopleBuildGroupDto
 * @使用场景
 */
@Data
public class BffPullNPeopleBuildGroupDto implements Serializable {

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 账号
     */
    @ApiModelProperty("账号")
    private String userId;
    /**
     * 虚拟组织成员就职记录ID
     */
    @ApiModelProperty("虚拟组织成员就职记录ID")
    private String virtualOrgInductionRecordId;

    /**
     * 备注首位字母
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffPullNPeopleBuildGroupDto that = (BffPullNPeopleBuildGroupDto) o;
        return originalRoleMemberId == that.originalRoleMemberId && userId == that.userId && virtualOrgInductionRecordId == that.virtualOrgInductionRecordId && firstLetter == that.firstLetter;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), originalRoleMemberId, userId, virtualOrgInductionRecordId, firstLetter);
    }

}
